<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: fonts/bdffontutil.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f315b379889fde23168cba3fe99c18a3.html">fonts</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">bdffontutil.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="bdffontutil_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef _UTIL_H_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _UTIL_H_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="bdffontutil_8h.html#a4d192fe48cb19d0ef5a88c52ed23cf4c">   39</a></span>&#160;<span class="preprocessor">#define MATCH(a,b)  ( ( strcmp(a,b) == 0 ) ? 1 : 0 )</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="bdffontutil_8h.html#a3e937c42922f7601edb17b747602c471">   40</a></span>&#160;<span class="preprocessor">#define MAXLINE 1024</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">/* bdffontutil.c */</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="bdffontutil_8h.html#a772bc2ec9bca317fb84673f5e9fab1d3">db_calloc</a> ( <span class="keywordtype">size_t</span> size );</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="bdffontutil_8h.html#a6042d0098b72b215bcef2d21e803e51d">db_free</a> ( <span class="keywordtype">void</span> *p );</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="bdffontutil_8h.html#a8a9b8fa6a56f0303cd8c23fdf290f401">stralloc</a> ( <span class="keywordtype">char</span> *str );</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="bdffontutil_8h.html#a907e53e4a090147ec953b18f0e1b7915">remove_quotes</a> ( <span class="keywordtype">char</span> *str );</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a466ba4f5e35f1e5ff2791ae4d68d2c7b">line_wrap</a> ( <span class="keywordtype">char</span> *str , <span class="keywordtype">int</span> max );</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a4ad12cb70b50ebf45467f22d22707acc">trim_tail</a> ( <span class="keywordtype">char</span> *str );</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="bdffontutil_8h.html#a77f36d5136e3d749221b33e3f23c0258">skip_spaces</a> ( <span class="keywordtype">char</span> *str );</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="bdffontutil_8h.html#a1e35df70a4e8a3c2b60cc467731636c8">get_token</a> ( <span class="keywordtype">char</span> *str , <span class="keywordtype">char</span> *<a class="code" href="stringsup_8c.html#ae9142769a957bcb8c0fad1934576f576">token</a> , <span class="keywordtype">int</span> max );</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keywordtype">int</span> <a class="code" href="bdffontutil_8h.html#a236d65c81ae4bb3d079e9f2dd971cf04">ishex</a> ( <span class="keywordtype">int</span> c );</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keywordtype">int</span> <a class="code" href="bdffontutil_8h.html#aa8842f574a823375421ac5eabc13bf8c">ishexstr</a> ( <span class="keywordtype">char</span> *str );</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="bdffontutil_8h.html#aa8451fa4387dfafd4583f6548533d37b">match_token</a> ( <span class="keywordtype">char</span> *str , <span class="keywordtype">char</span> *pat );</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a3f0f4f7839e40a64f7cfd43752d8a602">FontHeaderInfo</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">char</span> *prog , <span class="keywordtype">char</span> *target );</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a9461259743229256336c4260de7e0e0e">Convert_Font2c</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a052882497beff245c47eafa6b988f2c0">emit_number</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <span class="keywordtype">char</span> *name , <span class="keywordtype">int</span> num );</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a083894d36a7a6960e30d21d88a0da874">emit_data</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <span class="keywordtype">char</span> *name , <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data , <span class="keywordtype">int</span> size );</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#adcb08a26399fd69fe0d607897367e4af">emit_str</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <span class="keywordtype">char</span> *name , <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data );</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a744559a23860d8af3812417dc9acff57">InitNames</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a75b1f39c4e8755dca07fd291e52aaedb">InitFonts</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a4afb5289fcab36022951a5d16ea7932f">FreeFont</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a6293de28b724a18693465ec67868d958">AddFontName</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keywordtype">int</span> <a class="code" href="bdffontutil_8h.html#aa01d93b9cf1d60cc4ce0adb717384f96">FindFontName</a> ( <span class="keywordtype">char</span> *str );</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#ac01ebab75271c42afb96bb8da7db06c2">WriteFontBits</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a82e40b5e56cab7daedbe210542aa1d99">WriteFontInfo</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a6e780815dcb0ad1738a3710d10751824">WriteFontTable</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a7c2cf276db0c747638909191d76925da">WriteCharacterBits</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">int</span> num );</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="keywordtype">int</span> <a class="code" href="bdffontutil_8h.html#a49c59fe21a56b90ad6f8bcc5549e3dce">ReadBdf</a> ( <span class="keywordtype">char</span> *name , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">int</span> lower , <span class="keywordtype">int</span> upper );</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a1b1c337030d89f81b06857192e4e0179">AdjustFontTable</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#ac2e86eac4bb6e173fbbfae929302e851">FontAdjustFull</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#ac8e10a9220f9a51589124690c47d099b">FontAdjustSmall</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a5452adc13af52bed8d199861362037e0">ComputeGapSize</a> ( <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> );</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#acaa9ad09e11f90b8cf7a9e37963e4690">bsetv</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr , <span class="keywordtype">int</span> addr );</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a972599efcbe9797a7ca0b80e9c3c3707">bclrv</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr , <span class="keywordtype">int</span> addr );</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keywordtype">int</span> <a class="code" href="bdffontutil_8h.html#aa30626c7589748b8cea5fee93e17c4cf">btestv</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr , <span class="keywordtype">int</span> addr );</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keywordtype">int</span> <a class="code" href="bdffontutil_8h.html#aa5ed287545d9d0d4361d2bd1c6ecc69d">bittestxy</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a> , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a> , <span class="keywordtype">int</span> w , <span class="keywordtype">int</span> h );</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#ac5c6287f7660b7752ffcb2e788e66f49">bitsetxy</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a> , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a> , <span class="keywordtype">int</span> w , <span class="keywordtype">int</span> h );</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a57a2a0c60cfe07cf03b14622e93ea4f4">bitclrxy</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a> , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a> , <span class="keywordtype">int</span> width , <span class="keywordtype">int</span> height );</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a4ce02c4d977692b73ca58869344d29ad">FontPreview</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">int</span> num );</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#ad503e80d2656e563b9d6112ea11ef820">FontPreviewFull</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">int</span> num );</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a85e25f42936fa2b1eb3489a17c439ed5">FontPreviewProportional</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">int</span> num );</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keywordtype">void</span> <a class="code" href="bdffontutil_8h.html#a6e60e1a05fd459f3af8aa691e06950a7">WriteFontBitsPreview</a> ( <a class="code" href="struct____file.html">FILE</a> *out , <a class="code" href="struct__font.html">_font</a> *<a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a> , <span class="keywordtype">int</span> preview );</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#endif // _UTIL_H_</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">extern</span> <a class="code" href="struct__font.html">_font</a> <a class="code" href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">extern</span> <a class="code" href="struct__bdffile.html">_bdffile</a> <a class="code" href="bdffontutil_8h.html#a8d8135c72831c5d6ca04479c82351b62">BDFnames</a>[<a class="code" href="display_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a>];</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">char</span> *<a class="code" href="bdffontutil_8h.html#ae75c11efb4dd449e4fcf9f1f78e9414c">fnames</a>[<a class="code" href="display_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a>];</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="ttc" id="bdffontutil_8h_html_a236d65c81ae4bb3d079e9f2dd971cf04"><div class="ttname"><a href="bdffontutil_8h.html#a236d65c81ae4bb3d079e9f2dd971cf04">ishex</a></div><div class="ttdeci">int ishex(int c)</div><div class="ttdoc">is a character hex ASCII character </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00247">bdffontutil.c:247</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a6e60e1a05fd459f3af8aa691e06950a7"><div class="ttname"><a href="bdffontutil_8h.html#a6e60e1a05fd459f3af8aa691e06950a7">WriteFontBitsPreview</a></div><div class="ttdeci">void WriteFontBitsPreview(FILE *out, _font *font, int preview)</div><div class="ttdoc">Write all Font characters in a font as ASCII character comments. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l02040">bdffontutil.c:2040</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_ac8e10a9220f9a51589124690c47d099b"><div class="ttname"><a href="bdffontutil_8h.html#ac8e10a9220f9a51589124690c47d099b">FontAdjustSmall</a></div><div class="ttdeci">void FontAdjustSmall(_font *font)</div><div class="ttdoc">Ajust font to use smallest font bounding box for each font Can be used to converting large fixed font...</div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01325">bdffontutil.c:1325</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a85e25f42936fa2b1eb3489a17c439ed5"><div class="ttname"><a href="bdffontutil_8h.html#a85e25f42936fa2b1eb3489a17c439ed5">FontPreviewProportional</a></div><div class="ttdeci">void FontPreviewProportional(FILE *out, _font *font, int num)</div><div class="ttdoc">Write Font Preview as proportional format in ASCII character comments. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01938">bdffontutil.c:1938</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a4ad12cb70b50ebf45467f22d22707acc"><div class="ttname"><a href="bdffontutil_8h.html#a4ad12cb70b50ebf45467f22d22707acc">trim_tail</a></div><div class="ttdeci">void trim_tail(char *str)</div><div class="ttdoc">Trim White space and control characters from end of string. </div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00271">stringsup.c:271</a></div></div>
<div class="ttc" id="struct__bdffile_html"><div class="ttname"><a href="struct__bdffile.html">_bdffile</a></div><div class="ttdef"><b>Definition:</b> <a href="display_2font_8h_source.html#l00043">font.h:43</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_aa30626c7589748b8cea5fee93e17c4cf"><div class="ttname"><a href="bdffontutil_8h.html#aa30626c7589748b8cea5fee93e17c4cf">btestv</a></div><div class="ttdeci">int btestv(unsigned char *ptr, int addr)</div><div class="ttdoc">Test bit in byte array. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01653">bdffontutil.c:1653</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_adcb08a26399fd69fe0d607897367e4af"><div class="ttname"><a href="bdffontutil_8h.html#adcb08a26399fd69fe0d607897367e4af">emit_str</a></div><div class="ttdeci">void emit_str(FILE *out, char *name, unsigned char *data)</div><div class="ttdoc">Write Font Structure string. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00478">bdffontutil.c:478</a></div></div>
<div class="ttc" id="ili9341_8c_html_afe490938209e0b6b15224c05a01f0b40"><div class="ttname"><a href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a></div><div class="ttdeci">int16_t y[XYSTACK+2]</div><div class="ttdef"><b>Definition:</b> <a href="ili9341_8c_source.html#l00372">ili9341.c:372</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a466ba4f5e35f1e5ff2791ae4d68d2c7b"><div class="ttname"><a href="bdffontutil_8h.html#a466ba4f5e35f1e5ff2791ae4d68d2c7b">line_wrap</a></div><div class="ttdeci">void line_wrap(char *str, int max)</div><div class="ttdoc">Line wrap function ASSUMES we write back into the string (replace space or tab with newlines...</div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00141">bdffontutil.c:141</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_acaa9ad09e11f90b8cf7a9e37963e4690"><div class="ttname"><a href="bdffontutil_8h.html#acaa9ad09e11f90b8cf7a9e37963e4690">bsetv</a></div><div class="ttdeci">void bsetv(unsigned char *ptr, int addr)</div><div class="ttdoc">bit set in byte array </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01625">bdffontutil.c:1625</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a6e780815dcb0ad1738a3710d10751824"><div class="ttname"><a href="bdffontutil_8h.html#a6e780815dcb0ad1738a3710d10751824">WriteFontTable</a></div><div class="ttdeci">void WriteFontTable(FILE *out, _font *font)</div><div class="ttdoc">Write Specification Font Table. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00684">bdffontutil.c:684</a></div></div>
<div class="ttc" id="struct____file_html"><div class="ttname"><a href="struct____file.html">__file</a></div><div class="ttdoc">FILE type structure. </div><div class="ttdef"><b>Definition:</b> <a href="posix_8h_source.html#l00156">posix.h:156</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a1e35df70a4e8a3c2b60cc467731636c8"><div class="ttname"><a href="bdffontutil_8h.html#a1e35df70a4e8a3c2b60cc467731636c8">get_token</a></div><div class="ttdeci">char * get_token(char *str, char *token, int max)</div><div class="ttdoc">return next token </div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00628">stringsup.c:628</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a75b1f39c4e8755dca07fd291e52aaedb"><div class="ttname"><a href="bdffontutil_8h.html#a75b1f39c4e8755dca07fd291e52aaedb">InitFonts</a></div><div class="ttdeci">void InitFonts(_font *font)</div><div class="ttdoc">Initialize all font structures to reset states. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00512">bdffontutil.c:512</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a907e53e4a090147ec953b18f0e1b7915"><div class="ttname"><a href="bdffontutil_8h.html#a907e53e4a090147ec953b18f0e1b7915">remove_quotes</a></div><div class="ttdeci">char * remove_quotes(char *str)</div><div class="ttdoc">STrip quotes from string and leading spaces. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00109">bdffontutil.c:109</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a1b1c337030d89f81b06857192e4e0179"><div class="ttname"><a href="bdffontutil_8h.html#a1b1c337030d89f81b06857192e4e0179">AdjustFontTable</a></div><div class="ttdeci">void AdjustFontTable(_font *font)</div><div class="ttdoc">Adjust Font X Y offset, renormalize X Y to 0 0 Also readjust font bounding box. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01191">bdffontutil.c:1191</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_ad503e80d2656e563b9d6112ea11ef820"><div class="ttname"><a href="bdffontutil_8h.html#ad503e80d2656e563b9d6112ea11ef820">FontPreviewFull</a></div><div class="ttdeci">void FontPreviewFull(FILE *out, _font *font, int num)</div><div class="ttdoc">Write Font Preview as full format in ASCII character comments. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01836">bdffontutil.c:1836</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a6042d0098b72b215bcef2d21e803e51d"><div class="ttname"><a href="bdffontutil_8h.html#a6042d0098b72b215bcef2d21e803e51d">db_free</a></div><div class="ttdeci">void * db_free(void *p)</div><div class="ttdoc">free memory </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00078">bdffontutil.c:78</a></div></div>
<div class="ttc" id="ili9341_8c_html_a12ad102c2d1e7e119fdc040b0c922c7e"><div class="ttname"><a href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a></div><div class="ttdeci">int16_t x[XYSTACK+2]</div><div class="ttdef"><b>Definition:</b> <a href="ili9341_8c_source.html#l00371">ili9341.c:371</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a083894d36a7a6960e30d21d88a0da874"><div class="ttname"><a href="bdffontutil_8h.html#a083894d36a7a6960e30d21d88a0da874">emit_data</a></div><div class="ttdeci">void emit_data(FILE *out, char *name, unsigned char *data, int size)</div><div class="ttdoc">Write Font Structure element as a uint8_t value. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00457">bdffontutil.c:457</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_aa8451fa4387dfafd4583f6548533d37b"><div class="ttname"><a href="bdffontutil_8h.html#aa8451fa4387dfafd4583f6548533d37b">match_token</a></div><div class="ttdeci">char * match_token(char *str, char *pat)</div><div class="ttdoc">Match next token against pattern. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00279">bdffontutil.c:279</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a744559a23860d8af3812417dc9acff57"><div class="ttname"><a href="bdffontutil_8h.html#a744559a23860d8af3812417dc9acff57">InitNames</a></div><div class="ttdeci">void InitNames(void)</div><div class="ttdoc">Reset File and Structure names. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00491">bdffontutil.c:491</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a49c59fe21a56b90ad6f8bcc5549e3dce"><div class="ttname"><a href="bdffontutil_8h.html#a49c59fe21a56b90ad6f8bcc5549e3dce">ReadBdf</a></div><div class="ttdeci">int ReadBdf(char *name, _font *font, int lower, int upper)</div><div class="ttdoc">Read and parse a BDF file for specified font and character set range Fills fonts structures. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00790">bdffontutil.c:790</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a972599efcbe9797a7ca0b80e9c3c3707"><div class="ttname"><a href="bdffontutil_8h.html#a972599efcbe9797a7ca0b80e9c3c3707">bclrv</a></div><div class="ttdeci">void bclrv(unsigned char *ptr, int addr)</div><div class="ttdoc">bit clear in byte array </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01639">bdffontutil.c:1639</a></div></div>
<div class="ttc" id="stringsup_8c_html_ae9142769a957bcb8c0fad1934576f576"><div class="ttname"><a href="stringsup_8c.html#ae9142769a957bcb8c0fad1934576f576">token</a></div><div class="ttdeci">MEMSPACE int token(char *str, char *pat)</div><div class="ttdoc">Search for token in a string matching user pattern. </div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00671">stringsup.c:671</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a82e40b5e56cab7daedbe210542aa1d99"><div class="ttname"><a href="bdffontutil_8h.html#a82e40b5e56cab7daedbe210542aa1d99">WriteFontInfo</a></div><div class="ttdeci">void WriteFontInfo(FILE *out, _font *font)</div><div class="ttdoc">Write C Header: Font Information Summary. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00654">bdffontutil.c:654</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a772bc2ec9bca317fb84673f5e9fab1d3"><div class="ttname"><a href="bdffontutil_8h.html#a772bc2ec9bca317fb84673f5e9fab1d3">db_calloc</a></div><div class="ttdeci">void * db_calloc(size_t size)</div><div class="ttdoc">calloc memory or error exit </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00062">bdffontutil.c:62</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a7c2cf276db0c747638909191d76925da"><div class="ttname"><a href="bdffontutil_8h.html#a7c2cf276db0c747638909191d76925da">WriteCharacterBits</a></div><div class="ttdeci">void WriteCharacterBits(FILE *out, _font *font, int num)</div><div class="ttdoc">Write Font bitmap data for one charactre. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00721">bdffontutil.c:721</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a77f36d5136e3d749221b33e3f23c0258"><div class="ttname"><a href="bdffontutil_8h.html#a77f36d5136e3d749221b33e3f23c0258">skip_spaces</a></div><div class="ttdeci">char * skip_spaces(char *str)</div><div class="ttdoc">Skip spaces at start of string. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00193">bdffontutil.c:193</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a9461259743229256336c4260de7e0e0e"><div class="ttname"><a href="bdffontutil_8h.html#a9461259743229256336c4260de7e0e0e">Convert_Font2c</a></div><div class="ttdeci">void Convert_Font2c(FILE *out, _font *font)</div><div class="ttdoc">Convert font to C structure Writes header information, font specification, font bitmap. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00365">bdffontutil.c:365</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_aa8842f574a823375421ac5eabc13bf8c"><div class="ttname"><a href="bdffontutil_8h.html#aa8842f574a823375421ac5eabc13bf8c">ishexstr</a></div><div class="ttdeci">int ishexstr(char *str)</div><div class="ttdoc">Does a string only contain hex characters ? </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00262">bdffontutil.c:262</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a8a9b8fa6a56f0303cd8c23fdf290f401"><div class="ttname"><a href="bdffontutil_8h.html#a8a9b8fa6a56f0303cd8c23fdf290f401">stralloc</a></div><div class="ttdeci">char * stralloc(char *str)</div><div class="ttdoc">Allocate space for string. </div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00774">stringsup.c:774</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a8d8135c72831c5d6ca04479c82351b62"><div class="ttname"><a href="bdffontutil_8h.html#a8d8135c72831c5d6ca04479c82351b62">BDFnames</a></div><div class="ttdeci">_bdffile BDFnames[MAXFONTS]</div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00051">bdffontutil.c:51</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_ac2e86eac4bb6e173fbbfae929302e851"><div class="ttname"><a href="bdffontutil_8h.html#ac2e86eac4bb6e173fbbfae929302e851">FontAdjustFull</a></div><div class="ttdeci">void FontAdjustFull(_font *font)</div><div class="ttdoc">Adjust font to full size with no offset. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01240">bdffontutil.c:1240</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a6d9c6f27190f0f04abf55678fe81080d"><div class="ttname"><a href="bdffontutil_8h.html#a6d9c6f27190f0f04abf55678fe81080d">font</a></div><div class="ttdeci">_font font</div></div>
<div class="ttc" id="bdffontutil_8h_html_ae75c11efb4dd449e4fcf9f1f78e9414c"><div class="ttname"><a href="bdffontutil_8h.html#ae75c11efb4dd449e4fcf9f1f78e9414c">fnames</a></div><div class="ttdeci">char * fnames[MAXFONTS]</div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00053">bdffontutil.c:53</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_aa5ed287545d9d0d4361d2bd1c6ecc69d"><div class="ttname"><a href="bdffontutil_8h.html#aa5ed287545d9d0d4361d2bd1c6ecc69d">bittestxy</a></div><div class="ttdeci">int bittestxy(unsigned char *ptr, int x, int y, int w, int h)</div><div class="ttdoc">Test bit in w * h size bit array usng x and y offsets. </div><div class="ttdef"><b>Definition:</b> <a href="flash_8c_source.html#l00166">flash.c:166</a></div></div>
<div class="ttc" id="display_2font_8h_html_ac108d78d76235e3c7cada0c2e56b7e2d"><div class="ttname"><a href="display_2font_8h.html#ac108d78d76235e3c7cada0c2e56b7e2d">MAXFONTS</a></div><div class="ttdeci">#define MAXFONTS</div><div class="ttdef"><b>Definition:</b> <a href="display_2font_8h_source.html#l00038">font.h:38</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a4ce02c4d977692b73ca58869344d29ad"><div class="ttname"><a href="bdffontutil_8h.html#a4ce02c4d977692b73ca58869344d29ad">FontPreview</a></div><div class="ttdeci">void FontPreview(FILE *out, _font *font, int num)</div><div class="ttdoc">Write Font Preview bit bounding box in ASCII character comments. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01753">bdffontutil.c:1753</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_aa01d93b9cf1d60cc4ce0adb717384f96"><div class="ttname"><a href="bdffontutil_8h.html#aa01d93b9cf1d60cc4ce0adb717384f96">FindFontName</a></div><div class="ttdeci">int FindFontName(char *str)</div><div class="ttdoc">Search for a font name. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00611">bdffontutil.c:611</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a052882497beff245c47eafa6b988f2c0"><div class="ttname"><a href="bdffontutil_8h.html#a052882497beff245c47eafa6b988f2c0">emit_number</a></div><div class="ttdeci">void emit_number(FILE *out, char *name, int num)</div><div class="ttdoc">Write Font Structure element as a number. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00442">bdffontutil.c:442</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_ac01ebab75271c42afb96bb8da7db06c2"><div class="ttname"><a href="bdffontutil_8h.html#ac01ebab75271c42afb96bb8da7db06c2">WriteFontBits</a></div><div class="ttdeci">void WriteFontBits(FILE *out, _font *font)</div><div class="ttdoc">Write Font bitmap data for all characters in a font. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00631">bdffontutil.c:631</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a6293de28b724a18693465ec67868d958"><div class="ttname"><a href="bdffontutil_8h.html#a6293de28b724a18693465ec67868d958">AddFontName</a></div><div class="ttdeci">void AddFontName(_font *font)</div><div class="ttdoc">Generate the font name for this font This is based on the BDF FAMILY_NAME,WEIGHT_NAME,SLANT keywords. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00582">bdffontutil.c:582</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_ac5c6287f7660b7752ffcb2e788e66f49"><div class="ttname"><a href="bdffontutil_8h.html#ac5c6287f7660b7752ffcb2e788e66f49">bitsetxy</a></div><div class="ttdeci">void bitsetxy(unsigned char *ptr, int x, int y, int w, int h)</div><div class="ttdoc">Set bit in width * height size bit array usng x and y offsets. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01698">bdffontutil.c:1698</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a57a2a0c60cfe07cf03b14622e93ea4f4"><div class="ttname"><a href="bdffontutil_8h.html#a57a2a0c60cfe07cf03b14622e93ea4f4">bitclrxy</a></div><div class="ttdeci">void bitclrxy(unsigned char *ptr, int x, int y, int width, int height)</div><div class="ttdoc">Clear bit in width * height size bit array usng x and y offsets. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01726">bdffontutil.c:1726</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a4afb5289fcab36022951a5d16ea7932f"><div class="ttname"><a href="bdffontutil_8h.html#a4afb5289fcab36022951a5d16ea7932f">FreeFont</a></div><div class="ttdeci">void FreeFont(_font *font)</div><div class="ttdoc">Free font data. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00554">bdffontutil.c:554</a></div></div>
<div class="ttc" id="struct__font_html"><div class="ttname"><a href="struct__font.html">_font</a></div><div class="ttdef"><b>Definition:</b> <a href="display_2font_8h_source.html#l00070">font.h:70</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a3f0f4f7839e40a64f7cfd43752d8a602"><div class="ttname"><a href="bdffontutil_8h.html#a3f0f4f7839e40a64f7cfd43752d8a602">FontHeaderInfo</a></div><div class="ttdeci">void FontHeaderInfo(FILE *out, _font *font, char *prog, char *target)</div><div class="ttdoc">Write Font Header Information Copyright, font family, etc. </div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l00323">bdffontutil.c:323</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a5452adc13af52bed8d199861362037e0"><div class="ttname"><a href="bdffontutil_8h.html#a5452adc13af52bed8d199861362037e0">ComputeGapSize</a></div><div class="ttdeci">void ComputeGapSize(_font *font)</div><div class="ttdoc">Find a good gap size (inter-character spacing) for any font Currently we searching for the smallest w...</div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8c_source.html#l01524">bdffontutil.c:1524</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
